# 九九乘法表---右下三角
for row in range(1, 10):
    for col in range(1, row+1):
        print("{}*{}={}\t".format(col, row, row*col), end="")
    print()



# 九九乘法表---右上三角
for row in range(1, 10):
    for col in range(row, 10):
        print("{}*{}={}\t".format(row, col, row*col), end="")
    print(end="\n")
    print(end="\t"*row)



# 九九乘法表---左上三角
for row in range(1, 10):
    for col in range(row, 10):
        print("{}*{}={}\t".format(row, col, row * col), end="")
    print(end="\n")



# 九九乘法表---右下三角
for row in range(1, 10):
    print(end="\t" * (10 - row))
    for col in range(1, row + 1):
        print("{}*{}={}\t".format(row, col, row * col), end="")
    print(end="\n")

